<?php
$GETLink = "";
$keys = array_keys($_GET);
for($i = 0; $i < count($keys); $i++)
{
	if($i > 0)
	{
		$GETLink .= "&";
	}
	$GETLink .= $keys[$i] . "=" . $_GET[$keys[$i]];
}
if($GETLink != "")
{
	$GETLink = "?" . $GETLink;
}
?>

<?php if ($this->pageCount): ?>
<div class="paging">
<!-- First page link -->
<?php if (isset($this->previous)): ?>
  <span><a href="<?php echo $this->url(array('page' => $this->first)) . $GETLink; ?>">
    First
  </a></span>
<?php else: ?>
  <span>First</span>
<?php endif; ?>
 
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <span><a href="<?php echo $this->url(array('page' => $this->previous)) . $GETLink; ?>">
    &lt; Previous
  </a></span>
<?php else: ?>
  <span>&lt; Previous</span>
<?php endif; ?>
 
<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <span><a href="<?php echo $this->url(array('page' => $this->next)) . $GETLink; ?>">
    Next &gt;
  </a></span>
<?php else: ?>
  <span>Next &gt;</span>
<?php endif; ?>
 
<!-- Last page link -->
<?php if (isset($this->next)): ?>
  <span><a href="<?php echo $this->url(array('page' => $this->last)) . $GETLink; ?>">
    Last
  </a></span>
<?php else: ?>
  <span>Last</span>
<?php endif; ?> 
</div>

<?php endif; ?>
